#!/usr/bin/env python
 
from pyraf import iraf
from pyraf.iraf import pysoar
 
# -----------------------------------------------------------
# core algorithm
 
def soartemp(message):
 
         print message
 
# -----------------------------------------------------------
# main task
 
parfile = iraf.osfn("soar$pysoar/soartemp.par")
t = iraf.IrafTaskFactory(taskname="soartemp",value=parfile,function=soartemp)
